Skip to content

Conversation

@ktoso
Copy link
Collaborator

@ktoso ktoso commented Oct 30, 2024

Half of #31

public func globalGetIntOptional() -> Int?

becomes:

      public static java.util.OptionalLong globalGetIntOptional()

other types of Optional are also supported, including any T

Needs more tests for all the cases and also be able to pass them in parameters.

return TranslatedType(
cCompatibleConvention: .direct,
originalSwiftType: optionalType.wrappedType, // FIXME: just optionalType?
cCompatibleSwiftType: "Optional<TODO>",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FIXME

@ktoso ktoso marked this pull request as draft October 31, 2024 09:06
@ktoso
Copy link
Collaborator Author

ktoso commented Oct 31, 2024

On purpose pushed a partial WIP, I want to get back to this once we have an jextract plugin

@ktoso
Copy link
Collaborator Author

ktoso commented Jun 10, 2025

This will get reworked a bit with a fresh start

@ktoso ktoso closed this Jun 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant